var express = require('express');
var router = express.Router();
const {loadImg,addAdvertise,updateAdvertiseRent,getAdvertiseRent,delAdvertiseData,getAdvertiseById}=require('../controllers/advertise.js');

//添加合同
router.post('/', addAdvertise);
router.get('/', getAdvertiseRent);
router.get('/:_id',getAdvertiseById);
router.delete('/',delAdvertiseData);
router.post('/uploadImages',loadImg);
router.put('/',updateAdvertiseRent);
module.exports = router;